const Mock=require('mockjs')

const fs=require('fs')

const data=Mock.mock({
    'list|4':[{
        'title':'@ctitle(2)',
        'children|30':[{
            'img':'@image(100x100,@color)',
            'title':'@ctitle(2)',
        }]
    }]
})

fs.writeFileSync('../mock/data.json',JSON.stringify(data.list))